|
This is a list of operators in the C and C++ programming languages. All the operators listed exist in C++; the fourth column "Included in C", dictates whether an operator is also present in C. Note that C does not support operator overloading. When not overloaded, for the operators && , || , and , (the comma operator), there is a sequence point after the evaluation of the first operand.C++ also contains the type conversion operators const_cast , static_cast , dynamic_cast , and reinterpret_cast . The formatting of these operators means that their precedence level is unimportant.Most of the operators available in C and C++ are also available in other languages such as C#, Java, Perl, and PHP with the same precedence, associativity, and semantics. ==Table== For the purposes of this table, a , b , and c represent valid values (literals, values from variables, or return value), object names, or lvalues, as appropriate. R , S and T stand for any type(s), and K for a class type or enumerated type."Can overload" means that the operator can be overloaded in C++. "Included in C" means that the operator exists and has a semantic meaning in C (operators are not overloadable in C). 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Operators in C and C++」の詳細全文を読む スポンサード リンク
|